package com.share.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.order.domain.EndOrderVo;
import com.share.order.domain.OrderInfo;
import com.share.order.domain.SubmitOrderVo;

import java.util.List;
import java.util.Map;

public interface IOrderInfoService extends IService<OrderInfo> {
    OrderInfo getNoFinishOrder(Long userId);
    Long saveOrder(SubmitOrderVo orderForm);
    void endOrder(EndOrderVo endOrderVo);
    List<OrderInfo> selectUserOrderInfoList(Long userId);


    OrderInfo selectOrderInfoById(Long id);

    OrderInfo getByOrderNo(String orderNo);

    void processPaySucess(String orderNo);
    public Map<String, Object> getOrderCount(String sql);
}
